package cn.yunhe.entity;

import lombok.Data;

import java.io.Serializable;
@Data
public class User implements Serializable {
    private int id;
    private String name;
    private String password;
    private String telephone;
    private int isadmin;

    public User(int id, String name, String password, String telephone) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.telephone = telephone;
    }

    public User() {
    }

    public User(String name, String password, String telephone) {
        this.name = name;
        this.password = password;
        this.telephone = telephone;
    }

    public User(String name) {
        this.name = name;
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public User(int id, String name, String password, String telephone, int isadmin) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.telephone = telephone;
        this.isadmin = isadmin;
    }
}
